package org.huzhp.security;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;

/**
 * @Description: java类作用描述
 * @Author: huzp
 * @CreateDate: 2020/4/7 16:01
 * @Version: 1.0
 */
public class OauthUser extends User {

    private String realname;


    public OauthUser(String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
    }

    public OauthUser(String username, String realname, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);
        this.realname = realname;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }
}
